<?php

class IndexController extends TMetroUI{
    
    public function index() {
        $this->REDIRECT->goToAction('logon');
    }

    public function logon() {

        $this->HTML->setTitle("Login");
        
        # Adicionar JS
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "jquery.validate.js");
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "util.validate.js");
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "jquery.mask.min.js");
        $this->HTML->addJavaScript(PATH_JS_URL . $this->_controller. "/" . $this->_action . ".js");
       
        # Startar Template
        $this->TStart("logon");
    }
    
    public function resgatar() {
        
        # Adicionar JS
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "jquery.validate.js");
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "util.validate.js");
        $this->HTML->addJavaScript(PATH_JS_CORE_URL . "jquery.mask.min.js");
        $this->HTML->addJavaScript(PATH_JS_URL . $this->_controller. "/" . $this->_action . ".js");
        
        $this->TStart('resgate');
    }
    
}

?>
